﻿<Page x:Class="NavigationDemo.Views.Page2View"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      KeepAlive="True"
      DataContext="{Binding Source={StaticResource ViewModelLocator}, Path=Page2ViewModel}"
      d:DesignHeight="300" d:DesignWidth="300"
	Title="Page2View">

    <Grid>
        <Image Source="/Images/metro2.jpg" 
               Opacity="0.75"
               Stretch="UniformToFill"/>

        <StackPanel>
            <TextBlock Text="Example Page 2" Style="{StaticResource WinTextTitle1Style}"/>

            <Button Content="Go back"
                    FontWeight="ExtraBold"
                    HorizontalContentAlignment="Left"
                    Margin="12 36 12 12"
                    Command="{Binding GoBackCommand}"
                    Style="{StaticResource WinButtonStyle}"/>
        </StackPanel>
            
    </Grid>
</Page>
